package com.neu.wangxiaoyang.dao;

import com.neu.commons.Dao.BaseDao;

import java.util.List;
import java.util.Map;

public class ImplSBLoginDao extends BaseDao {
        String sql="select * from scott.t_stu_info " +
                " where stu_no=? and stu_pwd=? and stu_statis=1";
        public List<Map<String ,Object>> findByStubsNo(String no,String pwd){
            List<Map<String ,Object>>list=super.BaseDaoQuery(sql,no,pwd);
            return  list;
        }

    public static void main(String[] args) {
        ImplSBLoginDao dao=new ImplSBLoginDao();
        List<Map<String ,Object>>list=dao.findByStubsNo("s1004","666666");
        for(Object obj : list){
            System.out.println(obj);
        }
    }
}
